package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Map;

/**
 * @version 1.0
 * @Description:
 * @time: 2020/9/22 18:03
 * @author: Rock
 */
@Data
@Document("chat_group")
public class ChatGroup implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Field("c")
    private String creator;

    private String it;

    @Field("t")
    private Double timestamp;

    @Field("m")
    private Map<String, Map<String, Object>> memberMap;

    @Field("d")
    private Map<String, Map<String, Object>> deviceMap;

    private String name;

    private String image;

}
